<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link href="https://cdn.bootcdn.net/ajax/libs/bulma/1.0.4/css/bulma.css" rel="stylesheet">
    <title th:replace="${title}">bulma</title>
   
</head>
<body>

   <div class="navbar-end" th:fragment="auth-buttons">
    <a class="navbar-item" href="/login">登录</a>
    <a class="navbar-item" href="/register">注册</a>
</div>

<div class="navbar-end" th:fragment="logout-button">
    <div class="navbar-item">
        <div>
            欢迎，<span th:text="${#authentication.name}">用户</span>!
        </div>
        <form th:action="@{/logout}" method="post">
            <button class="button is-link is-small">退出登录</button>
        </form> 
    </div>
</div>
    

    
<footer class="footer" th:fragment="footer">
    <div class="content has-text-centered">
        <p>
        <strong>我的项目</strong> by 周绪超
        
        </p>
    </div>
</footer>

<script >
    function isAuthenticated() {
        return sec.isAuthenticated();
    }
</script>

</body>
</html>